package com.daedalus.Gui.other.Smiley;

import javax.swing.JFrame;

public class drawSmileyTest{

	public static void main(String[] args) throws InterruptedException {
		JFrame frame= new JFrame();
		
		
		frame.setSize(400, 500);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		drawSmiley smile = new drawSmiley(false,true);
		frame.add(smile);
		frame.setVisible(true);
		for(int i=0;i<30;i++){
			for(int j=0;j<=5;j++){
				Thread.sleep(600);
				smile.syri=!smile.syri;
				frame.repaint();
			}
			Thread.sleep(1000);
			smile.happy=!smile.happy;
			frame.repaint();
			Thread.sleep(2200);
			smile.happy=!smile.happy;
			frame.repaint();
			Thread.sleep(1000);
		}
		
	}

}
